import Mock from 'mockjs';

Mock.mock('/api/goodsMy', 'get', () => {
    return Mock.mock({
      'users|10': [{
        // 'id|+1': 1,
        // 'date':'@date("yyyy-MM-dd")',
        // 'name':'小米手机',
        // 'address':'@county(true)',
        // 'price|1-100': 100,
        // 'cate':'Phone',
            "id|+1": 0,
            date: Mock.mock('@date()'),
            'name|1': [
                '苹果手机',
                '华为手机',
                '黑鲨手机',
                'vivo手机',
                'oppo手机'
                ],
            address: '上海市普陀区金沙江路 1518 弄',
            'price|1000-10000': 10000,
            cate:'Phone',
            'hot|1':[
              false,
              true
            ],
            published: false,
            'check_status|1': [
              false,
              true
            ],
            create_time:Mock.mock('@date()')
      }]
    });
  });
